//
//  GYSortCell.m
//  GoodLuck
//
//  Created by apple on 2018/3/7.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYSortCell.h"

static NSString *sortCellIdentifier = @"sortCellIdentifier";
@implementation GYSortCell

+ (instancetype)cellWithTableView:(UITableView *)tableView {
    GYSortCell *cell = [tableView dequeueReusableCellWithIdentifier:sortCellIdentifier];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([GYSortCell class]) owner:nil options:nil] firstObject];
    }
    
    return cell;
}

- (void)setSelectState:(BOOL)selectState {
    _selectState = selectState;
    self.sortImageView.hidden = !selectState;
    if (selectState) {
        self.sortLable.textColor = RGBColor(15, 206, 194);
    }else {
        self.sortLable.textColor = RGBColor(137, 137, 137);
    }
}
@end
